ci/papr: Add a suite to run introspection-based tests without ASAN
authorColin Walters <walters@verbum.org>
Wed, 19 Jul 2017 13:21:23 +0000 (09:21 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 20 Jul 2017 14:01:11 +0000 (14:01 +0000)
Unfortunately we can't do gobject-introspection based tests
while compiling with `-fsanitize=address`, since it needs to hook
`malloc` early on.

Add a new suite which just runs the introspection-based tests without ASAN.

Closes: #1016
Approved by: jlebon

.papr.yml
ci/build-check.sh

index 32d2b2243f54f3f037fe91ec996388a8ced9a654..bd4ff47b00e369533a504951dc5d254bbbdf231b 100644 (file)
--- a/.papr.yml
+++ b/.papr.yml
@@ -91,6 +91,22 @@ tests:
 
 ---
 
+inherit: true
+required: true
+
+context: f26-introspection-tests
+
+env:
+    CONFIGOPTS: "--with-curl --with-openssl"
+    # ASAN conflicts with introspection testing;
+    # See https://github.com/ostreedev/ostree/issues/1014
+    INSTALLED_TESTS_PATTERN: "libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js libostree/test-corrupt-repo-ref.js"
+
+tests:
+  - ci/build-check.sh
+
+---
+
 inherit: false
 branches:
     - master
index 677515b3235b71454080524200674c969c8d3f11..0e12000f7a7622a77c99cc6fd58749d8015c04d1 100755 (executable)
@@ -11,7 +11,7 @@ make syntax-check  # TODO: do syntax-check under check
 # And now run the installed tests
 make install
 if test -x /usr/bin/gnome-desktop-testing-runner; then
-    gnome-desktop-testing-runner -p 0 libostree/
+    gnome-desktop-testing-runner -p 0 ${INSTALLED_TESTS_PATTERN:-libostree/}
 fi
 
 if test -x /usr/bin/clang; then